package com.shop.loan.model.vo;

import com.shop.loan.model.Product;
import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.ManyToOne;

@Getter
@Setter
@Erupt(name = "UpdateOrderMoney")
public class UpdateOrderMoneyVo extends BaseModel {


    @ManyToOne
    @EruptField(
            views = @View(title = "产品", column = "name", width = "100px"),
            edit = @Edit(
                    title = "产品",
                    notNull = true,
                    type = EditType.REFERENCE_TREE
            )
    )
    private Product product;


//    @EruptField(
//            views = @View(title = "借款金额"),
//            edit = @Edit(title = "借款金额")
//    )
//    private BigDecimal money;
//
//    @EruptField(
//            views = @View(title = "担保费"),
//            edit = @Edit(title = "担保费")
//    )
//    private BigDecimal shopMoney;
//
//
//    @EruptField(
//            views = @View(title = "期数"),
//            edit = @Edit(title = "期数")
//    )
//    private Integer period;
//
//
//    @EruptField(
//            views = @View(title = "每期天数"),
//            edit = @Edit(title = "每期天数")
//    )
//    private Integer periodDay;
//
//    @EruptField(
//            views = @View(title = "年化利率(%)"),
//            edit = @Edit(title = "年化利率(%)")
//    )
//    private BigDecimal yearRate;

}
